const mongoose = require('mongoose')
const Schame = mongoose.Schema
const { plugin } = require('../config/database')

const user = new Schame({
  username: {
    type: String,
    required: true,
  },
  password: {
    type: String,
    required: true,
  },
  displayName: {
    type: String,
    default: 'User',
  },
})
user.plugin(plugin)
module.exports = mongoose.model('User', user)